<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body> 
</body>
<script>
    
    var arr = [6,44567,7,5,9,5,8,4,5,6]
    console.log(arr)

    // var res = arr.push("hello","fic",444,858,NaN) 
    // var res = arr.unshift("hello",455)
    // var res = arr.pop()
    // var res = arr.shift()
    // var res = arr.slice(3)
    // var res = arr.join("-")
    // var res = arr.reverse()
    // var res = arr.concat("hello",[5,6,[7,8]])
    // var res = arr.sort(function(a,b){
    //     // return a - b;
    //     return b - a;
    // })
    var res = arr.toString("-")



    console.log(arr)
    console.log(res)
    console.log(typeof res)

</script>
</html>